package com.yy.QSManage.service.impl;

import com.yy.QSManage.dao.FaSysDataSourceMapper;
import com.yy.QSManage.model.dto.FieldDto;
import com.yy.QSManage.model.entity.FaSysDataSource;
import com.yy.QSManage.service.FaSysDataSourceService;
import com.yy.QSManage.service.base.impl.BaseServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class FaSysDataSourceServiceImpl extends BaseServiceImpl<FaSysDataSourceMapper, FaSysDataSource> implements FaSysDataSourceService {

    @Autowired
    FaSysDataSourceMapper dataSourceMapper;

    @Override
    public List<String> tables() {
        return dataSourceMapper.tables();
    }

    @Override
    public List<FieldDto> fields(String tableName) {
        return dataSourceMapper.fields(tableName);
    }

    @Override
    public FieldDto getField(String tableName, String field) {
        return dataSourceMapper.getField(tableName, field);
    }
}
